
      <!--相关视频结束-->

           <?php
          if($layout==1):
              ?>
                      <?php

          echo "<div class='about_photo' style='display:".(count($photoArray) > 0?"":"none")."'>
         <h2><div class='com_tit' style='width:180px;'>相关图片<span>RELATED PHOTOS</span></div></h2>";
          $i=0;
                  foreach($photoArray as $row){
                        //echo link_to(image_tag($row['snapshot']), 'photomodule/index');
                          if($i==8)
                         {
                             break;
                         }
                         $i++;
                       echo "<div class='about_pic'>";
                                  ?>
                          <a href="<?php echo url_for('album/detail?photoGroupId='.$row['photo_group_id']) ?>" target='_blank'>
                              <?php echo "<img width='130' height='130' border='0' src='".$row['snapshot']."' /></a><p>".$row['title']."</p>
         </div>";
                  }
          ?>
          <?php echo "</div>";  ?>
                      <?php endif ?>


      <!--相关图片结束-->
      <?php
      if($layout!=1)
      {
          echo "<div class='MV_videos photos'>
           <h2><div class='com_tit'>美图欣赏<span>PHOTOS</span></div></h2>";
          $i=0;
                  foreach($photoArray as $row){
                        //echo link_to(image_tag($row['snapshot']), 'photomodule/index');
                          if($i==8)
                         {
                             break;
                         }
                         $i++;
                       
          echo "<div class='movie_box'>";
                          ?>
                          <a href="<?php echo url_for('album/detail?photoGroupId='.$row['photo_group_id']) ?>" target='_blank'>
                          <?php
          echo "<img src='".$row['snapshot']."'  /></a>
            <h3><a href='#' target='_blank'>".$row['title']."</a></h3>
            </div>";
                          }
          echo "  <div class='tanks_fx'>
           <p>感谢XXX的分享</p>
         </div>
            <div class='groups'><a href='#'><img src='/images/group01.jpg'  /></a>";
          ?>
              <a href="<?php echo url_for('album/detail?photoGroupId='.$row['photo_group_id']) ?>"><?php echo "<img src='/images/group02.jpg'  /></a></div>
         </div>";

      }
      ?>




         <!--美图欣赏结束-->


     

